/**
 * Created by lenovo on 2016/3/20.
 */
class Some{
    String ToString(){
        return "Some instance";
    }
}
public class Main {
    public static void main(String[] args) {
        Some some=new Some();
        System.out.println(some);
    }
}

class Some1{
    public int hashCode(){
        return 99;
    }
}

class Main1{
    public static void main(String[] args) {
        Some1 some=new Some1();
        System.out.println(some.hashCode());
    }
}

class Soo{
    Soo(){
       this(10);
        System.out.println("Soo()");
    }
    Soo(int x){
        System.out.println("Soo(int x)");
    }
}

class Other extends Soo{
    Other(){
        super(10);
        System.out.println("Other()");

    }
    Other(int y){
        System.out.println("Other(int y)");
    }
}

class Useos{
    public static void main(String[] args) {
        System.out.println(new Other());
        System.out.println();
        System.out.println(new Other(10));
        System.out.println();
        System.out.println(new Soo());
    }
}

class Useos1{
    public static void main(String[] args) {
        Other other=new Other();
        System.out.println();
        Other other2=new Other(10);
        System.out.println();
        Soo soo=new Soo();
        System.out.println();
        System.out.println(other);
        System.out.println();
        System.out.println(other2);
        System.out.println();
        System.out.println(soo);
    }
}

class Soo1 {
    int a;

    Soo1() {
        a = 3;
    }
}

class Useos2{
    public static void main(String[] args) {
        Soo1  soo1=new Soo1();
        System.out.println(soo1.a);
    }
}